package com.bosssoft.ct.springcloud.dao;

import com.bosssoft.ct.springcloud.pojo.entity.User;
import com.bosssoft.ct.springcloud.pojo.query.UserQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @author ChenTong
 * @version 1.0
 * @description 用户数据库操作接口
 * @date 2020/6/21 16:05
 * @modified
 **/
@Mapper
public interface UserDao{

    List<User> selectByCondition(UserQuery query);

    int delete(@Param("id") Long id);

    User selectByPrimaryKey(Long id);

    int update(User user);

    int insert(User user);
}
